package com.jilijili.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jilijili.pojo.Vlog;
import com.jilijili.pojo.bo.VlogBo;
import com.jilijili.pojo.mo.MessageMo;
import com.jilijili.pojo.vo.IndexVlogVO;
import com.jilijili.service.base.PagedGridResult;
import com.tencentcloudapi.tia.v20180226.models.InstallAgentRequest;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @description 提供消息服务
 * @createDate 2022-03-12 07:11:29
 */
public interface MsgService {

    /**
     * 删除消息
     *
     * @param fromUserId
     * @param toUserId
     */
    public abstract void delMessageByFromUserIdAndToUsersId(String fromUserId,
                                                            String toUserId);

    /**
     * 查询消息
     */
    public List<MessageMo> queryList(String toUserId,
                                     Integer page,
                                     Integer pageSize);

    /**
     * 创建消息
     */
    public abstract void createMsg(String fromUserId,
                                   String toUserId,
                                   Integer type,
                                   Map msgContent);


}
